import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';

class YBBangBanShiGongWeiHuiSubPage extends StatelessWidget {

  final String imageStr;
  final String titleStr;
  final String subTitleStr;

  const YBBangBanShiGongWeiHuiSubPage({Key key, this.imageStr, this.titleStr, this.subTitleStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
   return Container(
      height: YBTextStyle.adapterSize110,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Expanded(
            child: Row(
              mainAxisAlignment: MainAxisAlignment.start,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                Container(
                  width:YBTextStyle.adapterSize64,
                  height: YBTextStyle.adapterSize64,
                  child: SvgPicture.asset(YBImageStyle.getBangBanShiSVGPath(imageStr)),
                ),
                Container(
                  width: YBTextStyle.adapterSize12,
                ),
                Expanded(
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    crossAxisAlignment: CrossAxisAlignment.stretch,
                    children: [
                      Container(
                        child: Text(titleStr,style: YBTextStyle.textStyle30133316Bold,),
                      ),
                      Container(
                        height: YBTextStyle.adapterSize8,
                      ),
                      Container(
                        child: Text(subTitleStr,style: YBTextStyle.TextStyle90909013,),
                      ),
                    ],
                  ),
                ),
                // Container(
                //   height: YBTextStyle.adapterSize24,
                //   width: YBTextStyle.adapterSize24,
                //   child: SvgPicture.asset(YBImageStyle.getBangBanShiSVGPath("")),
                // ),
              ],
            ),
          ),
          Container(
            height: 1,
            color: YBColor.homeBorderLineColor,
          )
        ],
      ),
    );
  }
}
